Component({
  options: {
    addGlobalClass: true,
  },
  data: {
    elements: [    
        {
        title: '办案',
        name: '简易程序',
        color: 'blue',
        url:'my/anjianedit',
        icon: 'edit'
      },
        {
        title: '查询',
        name: '案件查询',
        color: 'cyan',
        url:'my/anjianlst',
        icon: 'search'
      },
      {
        title: '违停',
        name: '违停处理',
        color: 'red',
        url:'my/weitingedit',
        //url:'my/carsview?aid=2',
        icon: 'taxi'
      },
      {
        title: '记录',
        name: '违停记录',
        color: 'orange',
        url:'my/carslist',
        //url:'index/selwz',
        icon: 'taxi'
      },
      
    ],
  },
  methods: {
    doexit() {
        wx.showModal({
          title: '提示',
          content: '您确定要退出当前账号吗？',
          success: function (ress) {
            if (ress.confirm) {
              wx.clearStorage();
              setTimeout(function(){
                wx.showToast({
                  title: '退出成功',
                }),
                500
              })
              wx.redirectTo({
                url: '/pages/login/index',
              })
            }
            else if (ress.cancel) {
            }
          }
        })
      }
  }
  
})